-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Fix: Limit WC chains connected to 10 for max payload size #5427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK] Fix: Limit WC chains connected to 10 for max payload size #5427
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5427 +/- ##
==========================================
- Coverage 45.52% 45.50% -0.02%
==========================================
Files 1070 1071 +1
Lines 55682 55718 +36
Branches 4029 4032 +3
==========================================
+ Hits 25347 25357 +10
- Misses 29648 29674 +26
Partials 687 687
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
CNCT-2231 <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a validation check for the `chains` option in the WalletConnect integration, ensuring that no more than 10 chains can be specified. If more than 10 chains are provided, a warning is logged, and only the first 10 chains are used. ### Detailed summary - Added a check for `options.chains` to limit the number of chains to a maximum of 10. - Implemented a warning message if more than 10 chains are specified, informing the user of the truncation. - Used `slice(0, 10)` to return only the first 10 chains if the limit is exceeded. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
33af945 to
10ca0bc
Compare
CNCT-2231
PR-Codex overview
This PR introduces a check to limit the number of blockchain
chainsthat can be specified when using the WalletConnect feature, ensuring that no more than 10 chains are accepted.Detailed summary
chainsthat checks the length ofoptions.chains.options.chainsexceeds 10, it logs a warning and truncates the array to the first 10 chains.options.chainsis within the limit, it returns the original array.